#ifndef __COMM_H
#define __COMM_H

#include "hi_wifi_api.h"
#include "lwip/ip_addr.h"
#include "lwip/netifapi.h"
#include "lwip/sockets.h"
#include <stdio.h>

#include <unistd.h>
#include "ohos_init.h"
#include "cmsis_os2.h"
#include "cJSON.h"

#define MAXLINE 256

typedef struct comm
{
    int sockfd;
    int connfd;

    osThreadId_t udp_thd;
    osThreadId_t tcp_thd;

    char recvline[256];
} comm_tcb_t;


#endif